home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_1 / m10502d.zip / URGENT.DOC < prev   
Text File  |  1992-04-06  |  32KB  |  796 lines

  1. This document contains any important information that I deem important
  2.             for you to read.  Please give it a look over.
  3.             --------------------------------------------
  4.  
  5. Read the newest SIMPLEX.DOC for up to date instructions for Simplex.  At the
  6. very end of the DOC file there is a list of all the additions and changes
  7. for each version of Simplex.  PLEASE TAKE THE TIME TO READ THAT INFORMATION.
  8.  
  9.  
  10.  
  11. 0) Updating from version 1.05.01
  12.    =============================
  13.  
  14. *********************** Urgent: FR10501.EXE ***************************
  15.  
  16. Before running Simplex 1.05.02 or later if you have a version prior to
  17. 1.05.02, you MUST run the included conversion program FR10501.EXE.  This
  18. will convert the CONFIG.BBS, MSGCOMB.BBS, FILEAREA.BBS and the MSGAREA.BBS
  19. files to the new format.  The old files will be renamed as .BAK files.
  20.  
  21. DELETE/OBLITERATE this program after use!  You don't want to run it
  22. accidentally!
  23.  
  24. ***********************************************************************
  25.  
  26.  
  27.  
  28. 1) DORINFO#.DEF files and Doors
  29.    ============================
  30.  
  31. *NOTICE*   *NOTICE*   *NOTICE*   *NOTICE*   *NOTICE*   *NOTICE*
  32.  
  33. If you are running doors on Simplex prior to 1.05.02, please notice
  34. that if your BBS is *not* on COM1, the name of the DORINFO#.DEF file will
  35. not be DORINFO1.DEF!!  The new name will be DORINFO2.DEF if you are on
  36. COM2, or DORINFO3.DEF if on COM3, etc.
  37.  
  38. This is a standard convention for DORINFO files for handling multiple
  39. nodes.  Therefore, most door software should be able to handle this
  40. change.  If your software cannot handle it, then you might have to
  41. include the following line in your door batch file prior to calling the
  42. door:
  43.  
  44.     copy DORINFO?.DEF DORINFO1.DEF
  45.  
  46. where ? is the number of your com port.
  47.  
  48.  
  49.  
  50. 2) Updating from version 1.04.xx
  51.    =============================
  52.  
  53. *********************** Urgent: FROM104.EXE ***************************
  54.  
  55. Before running Simplex 1.05 or later if you have a version prior to
  56. 1.05, you MUST run the included conversion program FROM104.EXE.  This
  57. will convert the USERLIST.BBS, the CONFIG.BBS and the MSGAREA.BBS
  58. files to the new format.  The old files will be renamed as .BAK files.
  59.  
  60. DELETE/OBLITERATE this program after use!  You don't want to run it
  61. accidentally!
  62.  
  63. ***********************************************************************
  64.  
  65.  
  66.  
  67. 3) Updating from version 1.01
  68.    ==========================
  69.  
  70. *************** Urgent: FROM101.EXE and FROM1012.EXE ******************
  71.  
  72. Before running any version after 1.01 if you haven't run any version
  73. subsequent to it, you MUST run the program FROM101.EXE (or
  74. for OS/2 users FROM1012.EXE) in your Simplex directory.  This will
  75. convert your CONFIG.BBS, USERLIST.BBS and all your menu files to using
  76. the new format!  The old ones will be names CONFIG.BAK, USERLIST.BAK,
  77. and each menu file will also have a .BAK.
  78.  
  79. Once you have run the new version, and everything is successful, you
  80. can delete the .BAK files.
  81.  
  82. Version 1.02 or later of Simplex now implements 16 user flags (A through P). 
  83. These can be used to restrict access to certain menu items.  There are
  84. two new menu options which allow you to turn on or off user flags.
  85.  
  86. DELETE/OBLITERATE this program after use!  You don't want to run it
  87. accidentally!
  88.  
  89. ***********************************************************************
  90.  
  91.  
  92. 4) Updated stuff in Simplex for this release
  93.    =========================================
  94.  
  95.     See the accompanying VERSION.DOC file for this information.
  96.  
  97.  
  98.  
  99. 5) If menus don't work correctly!
  100.    =============================
  101.  
  102. If you find that some menus do not work correctly with 1.04, it is
  103. probably due to the fact that you used psuedo-variables (like $t and
  104. $d) using uppercase letters (like $T and $D).  With the advent of menu
  105. macros ($A-$Z), the case used in menus is important.  Pseudo-variables
  106. MUST be in lowercase.
  107.  
  108.  
  109.  
  110. 6) DOS Swapping version of Simplex dropped in 1.05.02
  111.    ==================================================
  112.  
  113. The DOS Swapping version of Simplex is no longer available.  The main 
  114. SIMPLEX.EXE file now handles swapping if you provide the -O flag.  See
  115. the new docs to see how this flag is used.
  116.  
  117.  
  118.  
  119. 7) Official Simplex Distribution Sites
  120.    ===================================
  121.  
  122. The following are official distribution sites for Simplex:
  123.  
  124.  Programmer's Oasis BBS, USA .... 919/226-6984 HST,v32bis,v32,14400->300
  125.  Programmer's Oasis 2 BBS, USA .. 919/226-7136 HST,v32bis,v32,14400->300
  126.  NightHawk BBS, USA ............. 919/228-7002 HST,9600->300 N,8,1
  127.  D & R BBS, USA ................. 919/227-5215 HST,v32bis,v32,16800->300 
  128.  Stardate 1990 BBS, USA ......... 919/376-8423 HST,v32bis,v32,14400->300
  129.  Bedside Manor BBS, USA ......... 919/233-8566 HST,14400->300
  130.  
  131. If you wish to become an official distribution center, please contact
  132. Chris Laforet through any of the addresses below.  You must have the
  133. capability of electronically picking up the current versions from my 
  134. system when new versions are released.
  135.  
  136.          
  137.  
  138. 8) Distribution Policy
  139.    ===================
  140.  
  141. Instead of putting all the Fidonet mail files into the main Simplex 
  142. distribution zips they have been separated out into separate distribution 
  143. zips.  These zips are called M10500D.ZIP (for DOS) and M105002.ZIP
  144. (for OS/2) and contain the files needed to handle Fidonet messages. 
  145. They are available from the above distribution centers.
  146.  
  147.  
  148.  
  149. 9) Crashes and/or Bugs
  150.    ===================
  151.  
  152.  Please report any strange crashes or bugs back to me at any of the
  153. addresses indicated below.  OS/2 users especially.  If you get an error
  154. screen from OS/2 with a register dump, PLEASE copy down the numbers
  155. next to CS: and IP: in the dump and give them to me.  That will greatly
  156. assist me in locating the problem!!
  157.  
  158.  
  159. 10) Contacting Chris Laforet Software
  160.     =================================
  161.  
  162.  You may send me mail through any of the following:
  163.  
  164.  Programmer's Oasis BBS, USA .... 919/226-6984
  165.  Programmer's Oasis 2 BBS, USA .. 919/226-7136
  166.  Fidonet Email .................. Chris Laforet @ 1:3644/1 or 1:3644/2
  167.  Compuserve Email ............... User ID: 76120,110
  168.  US Mail ........................ Chris Laforet Software
  169.                                   511-D Poplar St
  170.                                   Graham, NC  27253
  171.  
  172.  This I check occassionally:
  173.  
  174.  BIX Email....................... User ID: laforet
  175.  
  176.  
  177.  
  178. 11) Fidonet and Worldnet users can access the Simplex echo
  179.     ======================================================
  180.  
  181. The SIMPLEX echo might already be available in your area.  We are
  182. trying to make it a backbone echo at this time.  It is now in Fidonet's
  183. Region 18 and it is available through Worldnet.
  184.  
  185. Otherwise, users who wish to hook into the private Simplex echo can send me
  186. Fidonet mail at 1:3644/1 or 1:3644/2 and request it.  What we will do
  187. is set up a passworded session for the mailers and you will have to
  188. poll for mail once or twice a week.  The tag name off the echo is
  189. SIMPLEX.  In your message, send me your node information, the password
  190. you wish the mailers to use (<= 8 letters, case is significant), the
  191. node that you wish to poll (3644/1 or 3644/2) and I'll set it up for you.
  192.  
  193.  
  194. 12) Help files
  195.     ==========
  196.  
  197.   The help files in help.zip are the .asc and .ans formats needed by
  198. Simplex.  The .src files are the source files in SANSI-compilable
  199. format in case you wish to change the help files.
  200.  
  201.  
  202. 13) Developing Utilities for Simplex
  203.     ================================
  204.  
  205.   You are encouraged to develop external utilities for Simplex.  Please
  206. feel free to ship them over to the Simplex areas on any of those BBSes. 
  207. The data structures for Simplex are in this doc and are ***BYTE
  208. aligned*** (-Zp1 in MSC).  
  209.  
  210. If you need extra information, contact Chris Laforet at any of the above 
  211. addresses and we'll see what we can do!
  212.  
  213. If you do develop utilities, please upload them to the Simplex areas on
  214. the distribution sites.  I know that they will meet a very appreciative
  215. audience.
  216.  
  217.  
  218.  
  219. 14) Data information and structures for Simplex v 1.05.02
  220.     =====================================================
  221.  
  222. ***** Remember that structures are BYTE-ALIGNED!!! *****
  223.  
  224.  
  225. /* these macros access the user_flags bit-mapped options */
  226.  
  227. #define USER_CLS               0x1         /* send cls codes */
  228. #define USER_MORE              0x2         /* use more? paging */
  229. #define USER_ANSI              0x4         /* use ansi */
  230. #define USER_EDITOR            0x8         /* use full screen editor */
  231. #define USER_EXPERT            0x10        /* expert (abbreviated) menus */
  232. #define USER_FILEATTACH        0x20        /* allow user to fileattach in netmail areas? */
  233. #define USER_GUEST             0x40        /* this login is guest - recycle login time for day */
  234. #define USER_ANSWERED          0x4000      /* user has answered a newuser.qf questionaire */
  235. #define USER_DELETED           0x8000      /* user is deleted pending purge */
  236.  
  237.  
  238. /* these macros access the menu type options */
  239.  
  240. #define MENU_SHOW              0x0       /* show menu line only */
  241. #define MENU_CALL              0x1       /* call next menu */
  242. #define MENU_GOTO              0x2       /* goto next menu - no return */
  243. #define MENU_RET               0x3       /* return to previous menu */
  244. #define MENU_REPLACE           0x4       /* goto next menu - replace current menu on stack */
  245.  
  246. #define MENU_ENTER             0x10      /* enter a message */
  247. #define MENU_READ              0x11      /* read a message */
  248. #define MENU_SCAN              0x12      /* scan messages */
  249. #define MENU_QSCAN             0x13      /* quickscan messages */
  250. #define MENU_USERLIST          0x14      /* search/display users list */
  251. #define MENU_NETSEARCH         0x15      /* search for netmail address */
  252. #define MENU_FREQ              0x16      /* generate File Request to netmail node */
  253.  
  254. #define MENU_LIST              0x20      /* list file.bbs listing */
  255. #define MENU_UPLOAD            0x21      /* upload files to area */
  256. #define MENU_DOWNLOAD          0x22      /* download files from area */
  257. #define MENU_RAW               0x23      /* raw directory list in area */
  258. #define MENU_CONTENTS          0x24      /* view archive contents */
  259. #define MENU_NEW               0x25      /* show new files on system */
  260. #define MENU_SRCHNAME          0x26      /* search for file name on system */
  261. #define MENU_SRCHKEY           0x27      /* search for keyword on system */
  262. #define MENU_KILL              0x28      /* kill/delete file in area */
  263. #define MENU_READFILE          0x29      /* read a textfile in file area */
  264. #define MENU_DOWNLOAD_FILE     0x2a      /* download 1 file from area */
  265. #define MENU_MOVEFILES         0x2b      /* move files to another area */
  266.  
  267. #define MENU_SHOWFILE          0x30      /* show an ansi/ascii file */
  268. #define MENU_SHOWHOT           0x31      /* show an ansi/ascii file with active keys */
  269. #define MENU_SHOWWAIT          0x32      /* show an ansi/ascii file with wait for Enter */
  270. #define MENU_QUESTION          0x33      /* show a questionaire file */
  271. #define MENU_QUOTE             0x34      /* show a "random" quote from file */
  272. #define MENU_SHOWHOT_NOEXPERT  0x35      /* show an ansi/ascii file with active keys IF expert mode is off */
  273.  
  274. #define MENU_CITY              0x40      /* change users city/state */
  275. #define MENU_PASSWORD          0x41      /* change users password */
  276. #define MENU_CLS               0x42      /* toggle users cls state */
  277. #define MENU_MORE              0x43      /* toggle users more state */
  278. #define MENU_SCREENLEN         0x44      /* change users screen len */
  279. #define MENU_ANSI              0x45      /* toggle ansi on/off */
  280. #define MENU_EDITOR            0x46      /* toggle between line and full editor */
  281. #define MENU_EXPERT            0x47      /* toggle between novice and expert mode */
  282. #define MENU_HOMEPHONE         0x48      /* change home phone number */
  283. #define MENU_DATAPHONE         0x49      /* change data phone number */
  284. #define MENU_CHGADD1           0x4a      /* change full address line 1 */
  285. #define MENU_CHGADD2           0x4b      /* change full address line 2 */
  286. #define MENU_CHGCITY           0x4c      /* change full address city */
  287. #define MENU_CHGSTATE          0x4d      /* change full address state */
  288. #define MENU_CHGZIP            0x4e      /* change full address zip */
  289.  
  290. #define MENU_ADENTER           0x50      /* enter an advertisement */
  291. #define MENU_ADREAD            0x51      /* read advertisements */
  292. #define MENU_ADSCAN            0x52      /* scan advertisments */
  293.  
  294. #define MENU_NEWPRIV           0x60      /* set a new privilege */
  295. #define MENU_UPTIME            0x61      /* raise the time of the user x minutes */
  296. #define MENU_DOWNTIME          0x62      /* drop the time of the user x minutes */
  297. #define MENU_ADDFLAGS          0x63      /* add flags to user's flags */
  298. #define MENU_DELFLAGS          0x64      /* delete flags to user's flags */
  299. #define MENU_SETTIME           0x65      /* set the time of the user to x minutes */
  300. #define MENU_LOGENTRY          0x66      /* log data line to sysop log */
  301.  
  302. #define MENU_SETCOMB           0x70      /* set up combined boards */
  303. #define MENU_READCOMB          0x71      /* read a message in comb boards */
  304. #define MENU_SCANCOMB          0x72      /* scan messages in comb boards */
  305. #define MENU_QSCANCOMB         0x73      /* quickscan messages in comb boards */
  306. #define MENU_DLCOMB            0x74      /* download messages in comb boards */
  307. #define MENU_CFGCOMB           0x75      /* configure combined boards */
  308. #define MENU_ULCOMB            0x76      /* upload messages in .QWK offline reader format */
  309.  
  310. #define MENU_XMITXMODEM        0x80      /* send files using Xmodem */
  311. #define MENU_XMITXMODEM1K      0x81      /* send files using Xmodem-1K */
  312. #define MENU_XMITYMODEM        0x82      /* send files using Ymodem */
  313. #define MENU_XMITYMODEMG       0x83      /* send files using Ymodem-G */
  314. #define MENU_XMITZMODEM        0x84      /* send files using Zmodem */
  315.  
  316. #define MENU_RECVXMODEM        0x90      /* recv files using Xmodem */
  317. #define MENU_RECVXMODEM1K      0x91      /* recv files using Xmodem-1K */
  318. #define MENU_RECVYMODEM        0x92      /* recv files using Ymodem */
  319. #define MENU_RECVYMODEMG       0x93      /* recv files using Ymodem-G */
  320. #define MENU_RECVZMODEM        0x94      /* recv files using Zmodem */
  321.  
  322. #define MENU_RUN               0xf0      /* run a program from BBS */
  323. #define MENU_EXIT              0xf1      /* exit BBS with errorlevel */
  324. #define MENU_VERS              0xf2      /* show BBS version info */
  325. #define MENU_USAGE             0xf3      /* show users time usage and dl/ul info */
  326. #define MENU_YELL              0xf4      /* yell for sysop */
  327. #define MENU_CLOCK             0xf5      /* show clock for time synchronizing */
  328. #define MENU_CHECKMAIL         0xf6      /* check for mail addressed to user */
  329. #define MENU_USERUPGRADE       0xf7      /* sysop's user-upgrade option */
  330. #define MENU_TIMELESS_YELL     0xf8      /* yell for sysop - not bound by regular time */
  331. #define MENU_LOGOFF            0xff      /* hangup and log off */
  332.  
  333. #define M_SIGNATURE            0xa442      /* proves file is actual menu file */
  334.  
  335.  
  336. /* these macros are for message board flags */
  337.  
  338. #define MSG_LOCAL_FILEATTACH   0x0
  339. #define MSG_LOCAL              0x1
  340. #define MSG_ECHO               0x2
  341. #define MSG_NET                0x4
  342. #define MSG_PRIVATE            0x8         /* messages are private */
  343. #define MSG_PUBLIC             0x10      /* messages are public */
  344. #define MSG_ALIAS              0x20      /* aliases are allowed */
  345.  
  346.  
  347. /* these macros are for message header flags */
  348.       
  349. #define MSGH_DELETED           0x1
  350. #define MSGH_PRIVATE           0x2
  351. #define MSGH_RECEIVED          0x4
  352. #define MSGH_NET_UNSENT        0x8      /* is unsent Netmail message */
  353. #define MSGH_NET               0x10     /* is Netmail */
  354. #define MSGH_ECHO_UNSENT       0x20     /* is unsent Echomail message */
  355. #define MSGH_ECHO              0x40     /* is echomail */
  356. #define MSGH_LOCAL_FILEATTACH  0x80     /* is local fileattach */
  357.  
  358. #define NET_KILLSENT           0x100    /* kill/sent netmail */
  359. #define NET_SENT               0x200    /* netmail sent */
  360. #define NET_FILEATTACH         0x400    /* file(s) attached */
  361. #define NET_CRASH              0x800    /* crashmail */
  362. #define NET_RECEIPT_REQ        0x1000   /* receipt requested */
  363. #define NET_AUDIT_REQ          0x2000   /* audit request */
  364. #define NET_RECEIPT            0x4000   /* return receipt */
  365.  
  366.  
  367. /* these macros are for advertisement board header flags */
  368.  
  369. #define ADH_DELETED            0x1
  370. #define ADH_REPLIES            0x2
  371.  
  372.  
  373. /* color macros */
  374.  
  375. #define BLACK                  0
  376. #define BLUE                   1
  377. #define GREEN                  2
  378. #define CYAN                   3
  379. #define RED                    4
  380. #define MAGENTA                5
  381. #define BROWN                  6
  382. #define WHITE                  7
  383. #define BRIGHT                 8
  384. #define BLINK                  0x80
  385. #define ON_BLACK               0x0
  386. #define ON_BLUE                0x10
  387. #define ON_GREEN               0x20
  388. #define ON_CYAN                0x30
  389. #define ON_RED                 0x40
  390. #define ON_MAGENTA             0x50
  391. #define ON_BROWN               0x60
  392. #define ON_WHITE               0x70
  393.  
  394. /* Values for flags in Version 6 nodelist */
  395.  
  396. #define NL_HUB                 0x1
  397. #define NL_HOST                0x2
  398. #define NL_REGION              0x4
  399. #define NL_ZONE                0x8
  400. #define NL_CM                  0x10
  401.  
  402.  
  403. /* these macros are for user flags */
  404.  
  405. #define UF_A                  0x1
  406. #define UF_B                  0x2
  407. #define UF_C                  0x4
  408. #define UF_D                  0x8
  409. #define UF_E                  0x10
  410. #define UF_F                  0x20
  411. #define UF_G                  0x40
  412. #define UF_H                  0x80
  413. #define UF_I                  0x100
  414. #define UF_J                  0x200
  415. #define UF_K                  0x400
  416. #define UF_L                  0x800
  417. #define UF_M                  0x1000
  418. #define UF_N                  0x2000
  419. #define UF_O                  0x4000
  420. #define UF_P                  0x8000
  421.  
  422.  
  423. /* flags for combined boards */
  424.  
  425. #define COMB_QWK              0x1
  426. #define COMB_PERSONAL         0x2        /* not currently used */
  427. #define COMB_WELCOME          0x4
  428. #define COMB_NEWS             0x8
  429. #define COMB_GOODBYE          0x10
  430.  
  431. #define COMB_USEARC           0x100
  432. #define COMB_USEZIP           0x200
  433. #define COMB_USELZH           0x400
  434. #define COMB_USEZOO           0x800
  435. #define COMB_USEARJ           0x1000
  436.  
  437.  
  438.  
  439. /* NOTICE: user structure changed from 1.04.xx to 1.05! */
  440.  
  441. struct user
  442.    {
  443.    char user_name[41];
  444.    char user_address1[31];
  445.    char user_address2[31];
  446.    char user_city[31];
  447.    char user_state[16];
  448.    char user_zip[16];
  449.    char user_password[16];
  450.    char user_home[15];            /* users home number */
  451.    char user_data[15];            /* users data/business number */
  452.  
  453.    unsigned char user_priv;      /* users default privilege level */
  454.    int user_uflags;            /* 16 default definable flags */
  455.    unsigned char user_spriv;      /* users special privilege level */
  456.    int user_sflags;            /* 16 special definable flags */
  457.    int user_sdate;               /* expiration date of special levels */
  458.  
  459.    char user_screenlen;         /* length of users screen in lines */
  460.    int user_credit;            /* credit in cents for fidomail */
  461.    int user_flags;               /* bit mapped flags for options */
  462.  
  463.    int user_firstdate;            /* first date user called */
  464.    int user_lastdate;            /* last date called */
  465.    int user_lasttime;            /* last time called */
  466.    int user_calls;               /* number of calls to the BBS */
  467.    int user_timeused;            /* amount of time used for the day (minutes) */
  468.  
  469.    int user_upload;            /* number of uploads */
  470.    long user_uploadbytes;         /* number of bytes uploaded */
  471.    int user_dnload;            /* number of downloads */
  472.    long user_dnloadbytes;         /* number of bytes downloaded */
  473.    long user_msgsent;            /* number of messages sent */
  474.    long user_msgread;            /* number of messages read */
  475.  
  476.    char user_padding;            /* makes record 256 bytes */
  477.    };
  478.  
  479.  
  480.  
  481. struct prompt
  482.    {
  483.    int prompt_sig;               /* signiture for valid menu file 0xa442 */
  484.    char prompt_color;
  485.    char prompt_hilite;
  486.    char prompt_string[56];       /* string to show */
  487.    };
  488.  
  489.  
  490. struct menu
  491.    {
  492.    int menu_number;            /* line number */
  493.    unsigned char menu_type;    /* type of choice */
  494.    char menu_key;              /* key to initiate choice */
  495.    unsigned char menu_priv;    /* user priv to see/use choice */
  496.    int menu_flags;             /* version 1.02 added 16 flags */
  497.    char menu_auto;             /* automatic execution if true */
  498.    char menu_color;            /* color of choice */
  499.    char menu_hilite;           /* color of hilight */
  500.    char menu_expert;           /* if true show when expert mode is on */
  501.    char menu_line[71];         /* line to show on screen */
  502.    char menu_data[71];         /* data line for menu option */
  503.    char menu_deleted;
  504.    };
  505.  
  506.  
  507. /* NOTICE: cfg structure changed from 1.05.01 to 1.05.02! */
  508.  
  509. struct cfg
  510.   {
  511.   int cfg_baud;          /* maximum baud rate */
  512.   int cfg_port;          /* port number */
  513.   char cfg_init[61];        /* modem initialization string */
  514.   char cfg_resp[21];        /* normal modem response string */
  515.   char cfg_dialpre[21];      /* dial prefix */
  516.   char cfg_dialpost[21];      /* dial postfix */
  517.   char cfg_resp3_1[21];      /* 300 baud response 1 */
  518.   char cfg_resp3_2[21];      /* 300 baud response 2 */
  519.   char cfg_resp12_1[21];      /* 1200 baud response 1 */
  520.   char cfg_resp12_2[21];      /* 1200 baud response 2 */
  521.   char cfg_resp24_1[21];      /* 2400 baud response 1 */
  522.   char cfg_resp24_2[21];      /* 2400 baud response 2 */
  523.   char cfg_resp48_1[21];      /* 4800 baud response 1 */
  524.   char cfg_resp48_2[21];      /* 4800 baud response 2 */
  525.   char cfg_resp96_1[21];      /* 9600 baud response 1 */
  526.   char cfg_resp96_2[21];      /* 9600 baud response 2 */
  527.   char cfg_resp192_1[21];      /* 19200 baud response 1 */
  528.   char cfg_resp192_2[21];      /* 19200 baud response 2 */
  529.   char cfg_resp384_1[21];      /* 38400 baud response 1 */
  530.   char cfg_resp384_2[21];      /* 38400 baud response 2 */
  531.   char cfg_ring[21];        /* ring response */
  532.   char cfg_answer[21];      /* answer string */
  533.   char cfg_hangup[21];      /* hangup string */
  534.   char cfg_busy[21];        /* offhook string */
  535.   int cfg_flags;          /* flags for setup */
  536.  
  537.   int cfg_zone;
  538.   int cfg_net;
  539.   int cfg_node;
  540.   int cfg_point;          /* point for later use */
  541.   int cfg_akazone[5];
  542.   int cfg_akanet[5];
  543.   int cfg_akanode[5];
  544.   int cfg_akapoint[5];      /* points for later use */
  545.  
  546.   char cfg_sysopname[41];      /* sysop's name */
  547.   char cfg_bbsname[61];      /* BBS name */
  548.   char cfg_origin[66];      /* origin line */
  549.   char cfg_qwkname[9];      /* name for QWK packet BBSID */
  550.   char cfg_menupath[61];      /* path to menu files */
  551.   char cfg_screenpath[61];    /* path to screen files */
  552.   char cfg_nodepath[61];      /* path to nodelist */
  553.   char cfg_fapath[61];      /* path to local fileattaches */
  554.  
  555.   char cfg_netpath[61];      /* path for net messages */
  556.   char cfg_inboundpath[61];    /* path for inbound message pkts */
  557.   char cfg_outboundpath[61];    /* path for outbound message pkts */
  558.   char cfg_packetpath[61];    /* path for unpacking message pkts */
  559.   char cfg_badmsgpath[61];    /* path for placing bad messages */
  560.   char cfg_unarc[61];        /* command for unarcing ARCed files */
  561.   char cfg_unzip[61];        /* command for unarcing ZIPped files */
  562.   char cfg_unzoo[61];        /* command for unarcing ZOOed files */
  563.   char cfg_unlzh[61];        /* command for unarcing LZHed files */
  564.   char cfg_unarj[61];        /* command for unarcing ARJed files */
  565.   char cfg_arc[61];        /* command for arcing ARCed files */
  566.   char cfg_zip[61];        /* command for arcing ZIPped files */
  567.   char cfg_zoo[61];        /* command for arcing ZOOed files */
  568.   char cfg_lzh[61];        /* command for arcing LZHed files */
  569.   char cfg_arj[61];        /* command for arcing ARJed files */
  570.  
  571.   char cfg_newpriv;        /* priv level of new user */
  572.   int cfg_newflags;        /* v 1.02 new user's flags */
  573.   int cfg_newcredit;        /* credit level of new user */
  574.   int cfg_newtime;        /* logon time in mins for newuser */
  575.   char cfg_askaddress;      /* ask for full address */
  576.   char cfg_askhome;        /* ask for home phone */
  577.   char cfg_askdata;        /* ask for data phone */
  578.  
  579.   int cfg_minbaud;        /* minimum connect rate allowed on BBS */
  580.   int cfg_ansibaud;        /* minimum baud for ansi */
  581.   char cfg_status;        /* status line background color */
  582.   char cfg_field;          /* entry field background color */
  583.   char cfg_menu;          /* submenu color */
  584.   char cfg_pwdtries;        /* number of attempts to get password */
  585.   char cfg_inactive;        /* time before hanging up for inactivity */
  586.   char cfg_yells;          /* number of yells per session */
  587.   char cfg_yelltime;        /* number of seconds for yell bell */
  588.   int cfg_yellstart;        /* start time for yell-bell */
  589.   int cfg_yellstop;        /* stop time for yell-bell */
  590.   int cfg_dlstart;        /* start time for downloads */
  591.   int cfg_dlstop;          /* stop time for downloads */
  592.  
  593.   char cfg_welcome[61];      /* command line for welcome program */
  594.   char cfg_viruschk[61];      /* command line for virus checker */
  595.   };
  596.  
  597.  
  598. /* NOTICE: msg structure changed from 1.05.01 to 1.05.02! */
  599.  
  600. struct msg
  601.   {
  602.   int msg_number;          /* message board number */
  603.   char msg_areaname[41];      /* message area name */
  604.   char msg_flags;          /* message area flags */
  605.   unsigned char msg_readpriv;
  606.   int msg_readflags;        /* 1.05.02 */
  607.   unsigned char msg_writepriv;
  608.   int msg_writeflags;        /* 1.05.02 */
  609.   unsigned char msg_sysoppriv;
  610.   char msg_origin[66];      /* special origin line for this if echomail area */
  611.   char msg_source;        /* source net/node for this netmail/echomail area */
  612.   char msg_deleted;        /* true if deleted */
  613.   };
  614.  
  615.  
  616. /* NOTICE: file structure changed from 1.05.01 to 1.05.02! */
  617.  
  618. struct file
  619.   {
  620.   int file_number;        /* file board number */
  621.   char file_areaname[41];      /* file area name */
  622.   char file_pathname[61];      /* path to file area */
  623.   char file_descname[61];      /* if set, this is the path to files.bbs */
  624.   unsigned char file_priv;    /* priv level to search this area */
  625.   int file_flags;          /* 1.05.02 - flags for search access */
  626.   char file_deleted;        /* true if deleted */
  627.   };
  628.  
  629.  
  630. struct evt
  631.    {
  632.    char evt_enabled;             /* true if enabled */
  633.    char evt_forced;              /* true if forced event */
  634.    char evt_days;                /* 0-S-M-T-W-T-F-S */
  635.    unsigned int evt_time;        /* encoded time to run */
  636.    char evt_errorlevel;
  637.    char evt_title[21];           /* optional name for event */
  638.    char evt_deleted;             /* true if deleted */
  639.    };
  640.  
  641.  
  642. struct msgh      /* systemwide message number is ((offset/sizeof(struct msgh)) + 1) -- 0 is invalid systemwide message */
  643.    {
  644.    int msgh_area;               /* area number of message */
  645.    int msgh_number;             /* message number int that area! */
  646.    char msgh_to[41];            /* addressee of message */
  647.    char msgh_from[41];
  648.    char msgh_subject[71];
  649.    int msgh_date;
  650.    int msgh_time;
  651.    int msgh_flags;               /* net and message flags */
  652.    int msgh_szone;
  653.    int msgh_snet;
  654.    int msgh_snode;
  655.    int msgh_dzone;
  656.    int msgh_dnet;
  657.    int msgh_dnode;
  658.    int msgh_cost;
  659.    int msgh_prev;               /* previous message link - systemwide message number */
  660.    int msgh_next;               /* next message link - systemwide message number */
  661.    long msgh_offset;            /* start offset of message */
  662.    long msgh_length;            /* message length in bytes */
  663.    };
  664.  
  665.  
  666. struct mdata
  667.    {
  668.    int mdata_msgs;              /* total number of messages */
  669.    int mdata_del;               /* total number of deleted messages */
  670.    };
  671.  
  672.  
  673. struct mc      /* message counts by area */
  674.    {
  675.    int mc_area;
  676.    int mc_msgs;
  677.    };
  678.  
  679.  
  680. struct mlink
  681.    {
  682.    int mlink_area;
  683.    int mlink_number;        /* number of the message in that area! */
  684.    int mlink_flags;         /* a copy of the message flags */
  685.    int mlink_cksum;         /* a checksum on the uppercased TO: person's name */
  686.    };
  687.  
  688.  
  689. struct adh      /* header for advertisements */
  690.    {
  691.    char adh_from[41];
  692.    char adh_subject[71];
  693.    int adh_date;
  694.    int adh_time;
  695.    int adh_killdate;
  696.    int adh_flags;               /* ad flags */
  697.    long adh_prev;               /* previous ad header */
  698.    long adh_next;               /* next ad header */
  699.    long adh_length;             /* ad length in bytes */
  700.    };
  701.  
  702.  
  703. struct m
  704.    {
  705.    char m_name[10];            /* menu's name */
  706.    struct prompt m_prompt;
  707.    struct menu **m_lines;
  708.    int m_maxlines;                 /* number of allocated menu lines */
  709.    int m_curlines;                 /* number of menu lines */
  710.    };
  711.  
  712.  
  713. struct ui      /* User-info structure */
  714.    {
  715.    char ui_name[41];            /* user's name */
  716.    int ui_date;                 /* date user logged in */
  717.    int ui_time;                 /* time user logged in */
  718.    int ui_baud;                 /* baud rate user logged in at */
  719.    int ui_online;               /* time user spent online in minutes */
  720.    int ui_msgread;              /* number of messages user read */
  721.    int ui_msgposted;            /* number of messages user posted */
  722.    int ui_upload;               /* number of uploads */
  723.    long ui_uploadbytes;         /* number of bytes uploaded */
  724.    int ui_dnload;               /* number of downloads */
  725.    long ui_dnloadbytes;         /* number of bytes downloaded */
  726.    };
  727.  
  728.  
  729. struct nl         /* version 6 nodelist entry */
  730.    {
  731.    int nl_net;
  732.    int nl_node;
  733.    int nl_cost;
  734.    char nl_bbsname[34];
  735.    char nl_phone[40];
  736.    char nl_city[30];
  737.    char nl_pwd[8];
  738.    int nl_realcost;
  739.    int nl_hub;
  740.    char nl_baud;
  741.    char nl_modemtype;
  742.    int nl_flags;
  743.    int nl_waste;
  744.    };
  745.  
  746.  
  747. struct nlix         /* version 6 nodelist index */
  748.    {
  749.    int nlix_node;
  750.    int nlix_net;
  751.    };
  752.  
  753.  
  754. struct qh          /* quote file header! */
  755.    {
  756.    char qh_sig[14];    /* must be the words "Simplex Quote\0" */
  757.    int qh_lines;       /* total number of lines */
  758.    };
  759.  
  760. The quote file header is followed by qh_lines * sizeof(long) each
  761. containing the offset to the beginning of the respective quote line. 
  762. Each quote line follows and is a NUL ('\0') terminated string of 512
  763. characters or less.
  764.  
  765.  
  766.  
  767. /* total number of bytes for combined area mapping (9999 x 1 bit each) */
  768.  
  769. #define COMB_AREA               1250
  770.  
  771.  
  772. /* the comb structure changed from 1.05.01 to 1.05.02 */
  773.  
  774. struct comb        /* combined message board structure */
  775.   {
  776.   int comb_user;        /* user number */
  777.   int comb_flags;
  778.   char comb_areas[COMB_AREA];
  779.   };
  780.  
  781. The combined message board file contains an entry for each user who has
  782. set up combined areas.  The user is identified by his/her user number. 
  783. The areas are flagged as on or off if the respective flag for the
  784. message area is set.  The byte where a specific flag is located for a
  785. specific area can be retrieved by: comb_areas[message_area >> 3].  The
  786. specific bit can be masked by: 1 << (message_area % 8).
  787.  
  788.  
  789.  
  790. MSGREAD.BBS consists of the following:
  791.  
  792. INT   # of areas
  793. INT   area numbers[# of areas]
  794. INT   last systemwide message read[# of areas][# of users]
  795.  
  796.